package com.app.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 平台用户记录
 * </p>
 *
 * @author yoominic
 * @since 2024-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_platform_change_record")
public class PlatformChangeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 类型
     */
    private String typeName;

    /**
     * 1 券 2积分
     */
    private Integer type;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 值
     */
    private BigDecimal value;

    /**
     * 原始值
     */
    private BigDecimal beforeValue;

    /**
     * 变动后得值
     */
    private BigDecimal afterValue;

    /**
     * 抽成类型 1 增加  2减少
     */
    private Integer pumpingType;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String mobile;
}
